<%@ page pageEncoding="UTF-8" %>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<% String contexts = request.getContextPath();
    pageContext.setAttribute("ctx", contexts);
%>
<html>

<link type="text/css" rel="stylesheet" href="${ctx}/css/login/label/labelCss.css">
<link rel="stylesheet" href="https://cdn.static.runoob.com/libs/bootstrap/3.3.7/css/bootstrap.min.css">
<script type="text/javascript" src="${ctx}/js/jquery-3.1.1.min.js"></script>
<script type="text/javascript" src="${ctx}/js/bootstrap.min.js"></script>
<script type="text/javascript" src="${ctx}/js/login/label/label.js"></script>
<body>
<div id="returnList">
    <div align="center"><h2>添加标签</h2></div>

    <s:form class="form-horizontal" id="addLabel" action="addLabel" role="form" namespace="/" method="POST">
        <div class="form-group" >
            <label for="inputLabelName" class="col-sm-2 control-label">标签名 :</label>

            <div class="col-sm-10">
                <input type="text" class="form-control" id="inputLabelName" name="labelVO.labelName"
                       value="${labelVO.labelName}">
            </div>
        </div>

        <div id="eMessage"></div>

        <div class="form-group" id="div_submit">
            <div class="col-sm-offset-2 col-sm-10">
                <button id="div_submit_val" type="button" class="btn btn-info" onclick="addLabelSubmit()">确定
                </button>
                <button type="button" class="btn btn-info"
                        onclick="location.href='${ctx }/listLabel.action'">
                    返回
                </button>
            </div>
        </div>
    </s:form>
</div>
</div>
</body>
</html>